package com.cicc.beergamevirtualsimulationsystem.service;

import com.cicc.beergamevirtualsimulationsystem.entity.UserEntity;
import com.cicc.beergamevirtualsimulationsystem.model.R;
import com.cicc.beergamevirtualsimulationsystem.model.user.dto.LoginDto;
import com.cicc.beergamevirtualsimulationsystem.model.user.dto.UserDto;
import jakarta.servlet.http.HttpServletRequest;

import java.time.LocalDateTime;


public interface LoginService {
     /**
      * 发送手机短信验证码【注册】
      * @param request
      * @param phone
      */
     void phoneCaptcha(HttpServletRequest request,String phone);

     R  login(LoginDto loginDto);

     String reg(HttpServletRequest request,UserEntity userDto);

     void updateCaptcha(HttpServletRequest request,String phone);

     void updatePwd(UserDto userDto);

     LocalDateTime getSmsEndTime(String phone);
}
